package com.oig.sys.base.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;


/**
 * @author wuxl
 * 只做海关汇率历史表 银行挂牌价不存历史
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_curr_rate_his")
public class TbCurrRateHis implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "currency")
	private String currency;

	/**
	 */
	@Column(name = "rmb_rate")
	private java.math.BigDecimal rmbRate;

	/**
	 */
	@Column(name = "usd_rate")
	private java.math.BigDecimal usdRate;

	/**
	 */
	@Column(name = "bank_rmb_brate")
	private java.math.BigDecimal bankRmbBrate;

	/**
	 */
	@Column(name = "bank_usd_brate")
	private java.math.BigDecimal bankUsdBrate;

	/**
	 */
	@Column(name = "bank_rmb_srate")
	private java.math.BigDecimal bankRmbSrate;

	/**
	 */
	@Column(name = "bank_usd_srate")
	private java.math.BigDecimal bankUsdSrate;

	/**
	 * 特殊价格（中行的话，取中行折算价作为海关汇率）
	 */
	@Column(name = "bank_rmb_given")
	private java.math.BigDecimal bankRmbGiven;

	/**
	 * 0-银行挂牌价 1-海关汇率
	 */
	@Column(name = "customs_flag")
	private String customsFlag;

	/**
	 */
	@Column(name = "rate_source", length = 32)
	private String rateSource;

	/**
	 */
	@Column(name = "use_month", length = 10)
	private String useMonth;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "rate_time")
	private java.util.Date rateTime;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
	private java.util.Date updateTime;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "his_time")
	private java.util.Date hisTime;
}
